package com.ytjj.qmyx.users.dao;

import com.ytjj.qmyx.users.model.dto.AdvertCallbackDto;
import com.ytjj.qmyx.users.model.request.AppLoginRequest;
import org.apache.ibatis.annotations.Param;

/**
 *
 *  *
 **/
public interface UsersAppLoginDao {
    void saveAndUpdate(AppLoginRequest request);

    void updateUserId(@Param("osVersion") Integer osVersion, @Param("id") String id, @Param("userId") Integer userId);

    AdvertCallbackDto findAdvertCallbackByid(@Param("osVersion") Integer osVersion, @Param("advertPlatform") String advertPlatform, @Param("id") String id, @Param("type") String type);

    boolean existByIdPlaType(@Param("osVersion") Integer osVersion, @Param("id") String id, @Param("advertPlatform") String advertPlatform, @Param("type") String type);

    void saveAdvertReport(AdvertCallbackDto advertCallback);

    boolean existById(@Param("osVersion") Integer osVersion, @Param("id") String id);
}
